package com.example.myexploer

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Environment
import android.util.Log
import java.io.File

class MainActivity : AppCompatActivity() {

    lateinit var fileParent: File

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        getDir()
    }

    fun getDir(){
        fileParent= Environment.getExternalStorageDirectory()
        fileParent.listFiles()
    }
}
